package gui;

import java.awt.BorderLayout;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

import containers.EmployeeContainer;
import entities.Employee;

/**
 * 
 * @author eks691
 * 
 */
public class EmployeeOptionPanel extends JPanel {

	/** id of either the student, manager, or employee in the system */
	private int id;

	public EmployeeOptionPanel(int i) {
		id = i;
		Employee employee = EmployeeContainer.dictionary().get(id);

		setLayout(new BorderLayout());
		JLabel options = new JLabel("LOGIN SUCCESSFUL!", SwingConstants.CENTER);
		options.setFont(new Font("Serif", Font.BOLD, 40));
		add(options, BorderLayout.PAGE_START); // add label to titlePanel
		// add(Box.createVerticalStrut(75));

		JLabel name = new JLabel("Employee: " + employee.getName(),
				SwingConstants.CENTER);
		name.setFont(new Font("Serif", Font.BOLD, 32));
		add(name, BorderLayout.CENTER);
		// add(Box.createVerticalStrut(50));
		// employeeInfoPanel.add(Box.createVerticalGlue());
		JLabel id = new JLabel("ID: " + employee.getID(), SwingConstants.CENTER);
		id.setFont(new Font("Serif", Font.BOLD, 32));
		add(id, BorderLayout.PAGE_END);
	}

	public static final long serialVersionUID = 1;
}
